package cn.com.tianpeidong.restaurantadmin.project.admin.dishestype.mapper;

import cn.com.tianpeidong.restaurantadmin.project.admin.dishestype.entity.DishesType;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author tianpeidong
 */
@Mapper
public interface DishesTypeMapper {
    List<DishesType> listDishesType(DishesType dishesType);

    int deleteById(@Param("id") Long id);

    DishesType getById(@Param("id") Long id);

    DishesType getByTypeName(@Param("typeName") String typeName);

    int insert(DishesType dishesType);

    int update(DishesType dishesType);
}
